From 16fe1008ec8dc1576c770c8c428548b4dd36b6d1 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Fri, 3 Dec 2021 19:28:10 +0100 Subject: [PATCH] [PATCH 75/90] be more verbose on pthread errors Gbp-Pq: Name 0075-be-more-verbose-on-pthread-errors.patch --- lib/CL/pocl_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CL/pocl_util.c b/lib/CL/pocl_util.c index 5ec92a9..95a8411 100644 --- a/lib/CL/pocl_util.c +++ b/lib/CL/pocl_util.c @@ -1629,8 +1629,8 @@ pocl_abort_on_pthread_error (int status, unsigned line, const char *func) { if (status != 0) { - POCL_MSG_PRINT2 (HSA, func, line, "Error from pthread call:\n"); - POCL_ABORT ("%s\n", strerror (status)); + POCL_MSG_PRINT2 (ERROR, func, line, "Error from pthread call:\n"); + POCL_ABORT ("PTHREAD ERROR in %s():%u: %s (%d)\n", func, line, strerror (status), status); } } -- 2.30.2